#!/usr/bin/env coffee

# h264 has a maximum frame size of 4,096 x 2,304 pixels @ 56 frames per second, or 4,096 x 2160 @ 60 frames per second, so that standard H. 264 decoders don't have to accommodate any frame size or frame rate larger than that.2017年4月5日

export default main = (宽,高)=>
  radio = 9437184 / (宽* 高)
  if radio < 1
    宽 = parseInt 宽*radio
    高 = parseInt 高*radio
  [宽,高]

#console.log main(10090,4352)
#console.log main(8192,20000)
